#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20231130.sql ./mysql/db
cp ../sql/ry_config_20231204.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../seniorgradefive-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy seniorgradefive-gateway "
cp ../seniorgradefive-gateway/target/seniorgradefive-gateway.jar ./seniorgradefive/gateway/jar

echo "begin copy seniorgradefive-auth "
cp ../seniorgradefive-auth/target/seniorgradefive-auth.jar ./seniorgradefive/auth/jar

echo "begin copy seniorgradefive-visual "
cp ../seniorgradefive-visual/seniorgradefive-monitor/target/seniorgradefive-visual-monitor.jar  ./seniorgradefive/visual/monitor/jar

echo "begin copy seniorgradefive-modules-system "
cp ../seniorgradefive-modules/seniorgradefive-system/target/seniorgradefive-modules-system.jar ./seniorgradefive/modules/system/jar

echo "begin copy seniorgradefive-modules-file "
cp ../seniorgradefive-modules/seniorgradefive-file/target/seniorgradefive-modules-file.jar ./seniorgradefive/modules/file/jar

echo "begin copy seniorgradefive-modules-job "
cp ../seniorgradefive-modules/seniorgradefive-job/target/seniorgradefive-modules-job.jar ./seniorgradefive/modules/job/jar

echo "begin copy seniorgradefive-modules-gen "
cp ../seniorgradefive-modules/seniorgradefive-gen/target/seniorgradefive-modules-gen.jar ./seniorgradefive/modules/gen/jar

